package com.yf.dxapp.module.app.controller.admin.token.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 登录token新增/修改 Request VO")
@Data
public class TokenSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19059")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1124")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "token", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "token不能为空")
    private String token;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "过期时间不能为空")
    private LocalDateTime expireTime;

    @Schema(description = "ENUM-类型:WEB,MINI,APP", example = "1")
    private Integer type;

}